#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QHBoxLayout>
#include <QGridLayout>
#include <QMainWindow>
#include <QTableWidget>
#include <QTabWidget>
#include <QDomDocument>
#include <QLineEdit>
#include <QComboBox>
extern QDomDocument dom;
namespace Ui {
    class MainWindow;
}

QString stringCheck(QString &s);

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    void closeEvent(QCloseEvent *ev);
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void createComp1(int n,QTableWidget*,QString);
    QTableWidget* createOneComp(int i,QString *nameComp);
    void removeComp(QTableWidget*);
    void insertComp(QTableWidget * table,QString nameComp);
    void initContentOfCourse();
    void initStructure();
    bool closeFl;

public slots:
    void saveProjectDialog();
    void openProject();
    void saveProject(QString);
    void saveAndClose();
    void easyClose();

public:
    Ui::MainWindow *ui;



private slots:
    void on_lineEdit_3_textChanged(QString );
    void on_pushButton_7_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_6_clicked();
    void on_pushButton_clicked();
};



#endif // MAINWINDOW_H
